package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.TPhysicalexamrecord;

import java.util.List;

/**
 * (TPhysicalexamrecord)表服务接口
 *
 * @author makejava
 * @since 2021-05-10 15:30:02
 */
public interface TPhysicalexamrecordService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    TPhysicalexamrecord findById(Integer id);

    /**
     * @Author: lenovo
     * @Date: 15:55 2021/5/10
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.PageResult
     * @Description: 分页查询
    */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * 新增数据
     *
     * @param tPhysicalexamrecord 实例对象
     * @return 实例对象
     */
    TPhysicalexamrecord add(TPhysicalexamrecord tPhysicalexamrecord,String status);

    /**
     * 修改数据
     *
     * @param tPhysicalexamrecord 实例对象
     * @return 实例对象
     */
    void edit(TPhysicalexamrecord tPhysicalexamrecord);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    /**
     * @Author: lenovo
     * @Date: 15:56 2021/5/10
     * @Parms []
     * @ReturnType: java.util.List<com.itheima.health.pojo.TPhysicalexamrecord>
     * @Description: 查询所有
    */
    List<TPhysicalexamrecord> findAll();

    List<TPhysicalexamrecord> findAll(String status);

    List<TPhysicalexamrecord> findByMemberId(Integer memberId);
}
